<?php
return $category = array(
    1=>array(
        "name"=>"category_1",
        "id"=>1,
        'pid'=>0,
        'child_category'=>array(
            11=>array(
                "name"=>"child_category_11",
                "id"=>11,
                'pid'=>1,
                'child_category'=>array(),  
            ),
            12=>array(
                "name"=>"child_category_12",
                "id"=>12,
                'pid'=>1,
                'child_category'=>array(),  
            ),
            13=>array(
                "name"=>"child_category_13",
                "id"=>13,
                'pid'=>1,
                'child_category'=>array(), 
            ),
        ),
    ),
    2=>array(
        "name"=>"category_2",
        "id"=>2,
        'pid'=>0,
        'child_category'=>array(
            21=>array(
                "name"=>"child_category_21",
                "id"=>21,
                'pid'=>2,
                'child_category'=>array(),  
            ),
            22=>array(
                "name"=>"child_category_22",
                "id"=>22,
                'pid'=>2,
                'child_category'=>array(),  
            ),
            23=>array(
                "name"=>"child_category_23",
                "id"=>23,
                'pid'=>2,
                'child_category'=>array(), 
            ),
        ),    
    ),
);
?>